package com.lzp.wechat.entity.button;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@ApiModel(value = "二级菜单实体")
public class SubButton extends AbstractButton {

    @ApiModelProperty(value = "二级菜单数组", notes = "个数应为1~5个")
    private List<AbstractButton> sub_button;

    public SubButton(String name) {
        super(name);
        this.sub_button = new ArrayList<>();
    }

}
